﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using TransCode.Logic;

namespace TransCode.Player.TargetPage
{
    /// <summary>
    /// Interaction logic for TargetObjectMainPage.xaml
    /// </summary>
    public partial class TargetObjectMainPage : Page
    {
        public TargetObjectMainPage()
        {
            InitializeComponent();

            tlogic.TargetObjectFindHandler += new EventHandler<TargetObjectFindResultArgs>(tlogic_TargetObjectFindHandler);
        }

        void tlogic_TargetObjectFindHandler(object sender, TargetObjectFindResultArgs e)
        {
            targetObjectControl1.Add(e.Result);
        }
        TargetObjectLogic tlogic = new TargetObjectLogic();
        public void Query(IDictionary<string, object> args)
        {
            targetObjectControl1.Clear();
            tlogic.Querys(args);
        }
    }
}
